<template>
	<view class="all">
		<view class="name">
			<view class="">  考试名称:  </view>
			<input  class="shuru" type="text" placeholder="请输入"  placeholder-class="plText"/>
		</view>
		<!-- 科目和总分 -->
		<view class="">
			<view class="kf">
				<view class="kemu">配置考试人员:</view>
				<!-- 下拉选择 -->
				<superwei-combox :candidates="renyuan" placeholder="请选择" v-model="inputValue" @input="input" @select="select" class="choose"></superwei-combox>
			</view>
			<view class="kf">
				<view class="kemu">配置批阅人员:</view>
				<!-- 下拉选择 -->
				<superwei-combox :candidates="renyuan" placeholder="请选择" v-model="inputValue" @input="input" @select="select" class="choose"></superwei-combox>
			</view>
			<view class="kf">
				<view class="kemu">从试题库选择:</view>
				<!-- 下拉选择 -->
				<superwei-combox :candidates="shijuan" placeholder="请选择" v-model="inputValue" @input="input" @select="select" class="choose"></superwei-combox>
			</view>
		</view>
		<!-- 题目选项 -->
		<view class="peizhi">
			<view class="name">
				<view class="">  出题人:  </view>
				<input  class="shuru" type="text" placeholder="请输入"  placeholder-class="plText"/>
			</view>
			<view class="name">
				<view class="">  考试开始时间:  </view>
				<view class="content">
					<select-date class="select-date-tem"  v-model="startTime" :startYear="2022"  />
				</view>
			</view>
			<view class="name">
				<view class="">  答题时间:  </view>
				<superwei-combox :candidates="shijian" placeholder="请选择" v-model="inputValue" @input="input" @select="select" class="choose"></superwei-combox>
			</view>
			<view class="name">
				<view class="">  答题次数:  </view>
				<superwei-combox :candidates="cishu" placeholder="请选择" v-model="inputValue" @input="input" @select="select" class="choose"></superwei-combox>
			</view>
		</view>
		<view class="">
			<view class="sm">  考试说明:  </view>
			<textarea class="shuoming" value="" placeholder="" />
		</view>
		<view class="">
			<navigator url="/pages/tea-duan/exam/noBegin">
				<button type="default" class="fabu">发布</button>
			</navigator>
		</view>
	</view>
</template>

<script>
	import selectDate from '@/components/wzl-data-picker/wzl-data-picker' 
    export default {
        data() {
            return {
				renyuan: ['张海燕','王月','岳不群','李力',],
				shijuan: ['期末试卷','期末试卷子卷','2020期末试卷','2021期末试卷',],
				shijian:['30分钟','60分钟','80分钟','90分钟','120分钟',],
				cishu:['一次','两次','无限次',],
				startTime: null 
            }
        },
        methods: {
            input(e){
                console.log(e) // 选项一
            },
            select(e){
                console.log(e) // 选项一
            }
        },
		components: {selectDate},
    }
</script>

<style>
	.all{
		width: 100%;
		height: 100vh;
		background-color: #f8f8f8;
	}
	.name{
		height: 80rpx;
		width: 100%;
		display: flex;
		flex-direction: row;
		/* justify-content: space-between; */
		align-items: center;
		margin-left: 20rpx;
	}
	.shuru{
		border: solid 2.5rpx #7e7e7e;
		width: 70%;
		border-radius: 10rpx;
		margin-right: 25rpx;
	}
	.kf{
		display: flex;
		flex-direction: row;
		/* justify-content: space-around; */
		align-items: center;
		margin-top: 40rpx;
		margin-bottom: 40rpx;
	}
	.kemu{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 30%;
		height: 50rpx;
	}
	.choose{
		height: 25rpx;
		border-radius: 10rpx;
	}
	.shiti{
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		margin-top: 30rpx;
	}
	.tishu{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		width: 40%;
		height: 50rpx;
	}
	.sr{
		border: solid 2.5rpx #7e7e7e;
		border-radius: 10rpx;
	}
	.peizhi{
		margin-top: 40rpx;
	}
	button{
		margin-top: 100rpx;
		width: 80%;
		border-radius: 25rpx;
		background-color: #12754F;
	}
/* 	时间选择 */
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
	.select-date-tem{
		width: 65%;
	}
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}
	
	.text-area {
		display: flex;
		justify-content: center;
	}
	
	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.shuoming{
		width: auto;
		height: 200rpx;
		border: solid #000000 3rpx ;
		border-radius: 25rpx;
		margin-left: 20rpx;
		margin-right: 20rpx;
	}
	.sm{
		margin-left: 20rpx;
	}
	.fabu{
		font-size: larger;
		font-weight: 700;
		color: #FFFFFF;
	}
</style>
